/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述: 钉钉通知记录 app_dingding_message 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年04月07日
 */
@Table(name = "upcase.app_dingding_message")
@Data
public class AppDingdingMessage implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;


    /**
     * caseId
     */
    @Column(name = "case_id")
    private String caseId;
    /**
     * 接收用户钉钉ID
     */
    @Column(name = "receiver_user_ding_id")
    private String receiverUserDingId;

    /**
     * 接收用户姓名
     */
    @Column(name = "receiver_user_name")
    private String receiverUserName;

    /**
     * 钉钉消息编号
     */
    @Column(name = "message_id")
    private String messageId;

    /**
     * 是否已读
     */
    @Column(name = "read_status")
    private String readStatus;

    /**
     * 读取时间
     */
    @Column(name = "read_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date readTime;

    /**
     * 消息类型
     */
    @Column(name = "message_type")
    private String messageType;

    /**
     * 标题
     */
    @Column(name = "title")
    private String title;

    /**
     * 内容正文
     */
    @Column(name = "content")
    private String content;

    /**
     * 关联链接
     */
    @Column(name = "link_url")
    private String linkUrl;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;


}